From: Joey Hess Date: Fri, 13 Dec 2024 17:31:21 +0000 (-0400) Subject: document empty expression X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~10^2~88 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=431de0699e36458dbf5167368b472d5e6a9da26f;p=git-annex.git document empty expression --- diff --git a/doc/git-annex-required.mdwn b/doc/git-annex-required.mdwn index 9cb079a322..876ac37ebc 100644 --- a/doc/git-annex-required.mdwn +++ b/doc/git-annex-required.mdwn @@ -11,10 +11,6 @@ git annex required `repository [expression]` When run with an expression, configures the content that is required to be held in the repository. -For example: - - git annex required . "include=*.mp3 or include=*.ogg" - Without an expression, displays the current required content setting of the repository. @@ -26,6 +22,15 @@ need to be removed with `git annex drop --force`. Also, `git-annex fsck` will warn about required contents that are not present. +For example: + + git annex required here "include=*.mp3 or include=*.ogg" + +To return a repository to the original default behavior, use an empty +value for the expression, eg: + + git-annex required here "" + # OPTIONS * The [[git-annex-common-options]](1) can be used. diff --git a/doc/git-annex-wanted.mdwn b/doc/git-annex-wanted.mdwn index f78aef0fc0..f683d5be46 100644 --- a/doc/git-annex-wanted.mdwn +++ b/doc/git-annex-wanted.mdwn @@ -13,11 +13,16 @@ to be held in the repository. See [[git-annex-preferred-content]](1) For example: - git annex wanted . "include=*.mp3 or include=*.ogg" + git annex wanted here "include=*.mp3 or include=*.ogg" Without an expression, displays the current preferred content setting of the repository. +To return a repository to the original default behavior, use an empty +value for the expression, eg: + + git-annex wanted here "" + # OPTIONS * The [[git-annex-common-options]](1) can be used.